package si.yun.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;


import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author Cxc 
 * @Author QQ:1304793236 
 * @Date 2021-08-05 14:42:38 
 */
public class SyUserCoupon implements Serializable {

	private static final long serialVersionUID =  546023706754317720L;

	/**
	 * 优惠卷信息表主键
	 */
	private int couponId;

	/**
	 * 优惠券编号
	 */
	private String couponCode;

	/**
	 * 优惠卷名称
	 */
	private String couponName;

	/**
	 * 优惠卷金额
	 */
	private BigDecimal couponPrice;

	/**
	 * 图片路径
	 */
	private String pictureUrl;

	/**
	 * 开始时间
	 */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private String startDate;

	/**
	 * 结束时间
	 */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private String endDate;

	/**
	 * 是否上线(2上线，3不上线)
	 */
	private int online;

	/**
	 * 发放方式(2自动发放，3活动领取，4人工发放，5无限制)
	 */
	private int mode;

	/**
	 * 发行数量
	 */
	private int issueQuantity;

	/**
	 * 剩余数量
	 */
	private int surplus;

	/**
	 * 类型(2商品，3视频,4无限制)
	 */
	private int type;

	/**
	 * 创建人
    */
	private int createId;

	/**
	 * 创建时间
	 */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private String createDate;

	/**
	 * 更新人
	 */
	private int updateId;

	/**
	 * 更新时间
	 */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private String updateDate;

    /**
     * 优惠券备注
     */
    private String remark;

    /**
     * 优惠券类型
     */
    private int couponType;
    /**
     * 满减金额
     */
    private double couponMoney;




    public int getCouponType() {
        return couponType;
    }

    public void setCouponType(int couponType) {
        this.couponType = couponType;
    }

    public double getCouponMoney() {
        return couponMoney;
    }

    public void setCouponMoney(double couponMoney) {
        this.couponMoney = couponMoney;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public int getCouponId() {
        return couponId;
    }

    public void setCouponId(int couponId) {
        this.couponId = couponId;
    }

    public String getCouponCode() {
        return couponCode;
    }

    public void setCouponCode(String couponCode) {
        this.couponCode = couponCode;
    }

    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    public BigDecimal getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(BigDecimal couponPrice) {
        this.couponPrice = couponPrice;
    }

    public String getPictureUrl() {
        return pictureUrl;
    }

    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public int getOnline() {
        return online;
    }

    public void setOnline(int online) {
        this.online = online;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    public int getIssueQuantity() {
        return issueQuantity;
    }

    public void setIssueQuantity(int issueQuantity) {
        this.issueQuantity = issueQuantity;
    }

    public int getSurplus() {
        return surplus;
    }

    public void setSurplus(int surplus) {
        this.surplus = surplus;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getCreateId() {
        return createId;
    }

    public void setCreateId(int createId) {
        this.createId = createId;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public int getUpdateId() {
        return updateId;
    }

    public void setUpdateId(int updateId) {
        this.updateId = updateId;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }
}
